import java.util.Date;
public class DayPrint {
    public int year;
    public int month;
    public int day;
    public void setDay(int year,int month,int day){
        this.year=year;
        this.month=month;
        this.day=day;
    }
    public void printDay(){
        System.out.println(this.year+"/"+this.month+"/"+this.day);
    }
    public static void main(String[] args) {
        DayPrint date=new DayPrint();//注意是创建了一个DayPrint类的对象，并将其引用赋值给date变量，注意要同类名字一样
        date.setDay(2025,3,6);
        date.printDay();
    }
}
